package com.ydy.netty.service;

import com.ydy.common.model.ChatRecord;
import com.ydy.common.model.User;
import com.ydy.common.model.UserFriend;
import com.ydy.common.vo.UserFriendVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface NettyService {

    List<UserFriendVo> getUserFriendsList(String userCode);

    List<UserFriendVo> getCanAddFriendList(String userCode);


    void addFriend(String userCode,String friendCode);

    void insertChatRecord(ChatRecord chatRecord);

    Map<String, List<ChatRecord>> queryChatRecord(String userCode);

    User queryUserInfo(String userCode);

    String getWebSocketUrl();

    User headPortraitImageUpload(MultipartFile file, String userCode, String nickName) ;

    List<UserFriendVo> queryAddFriendRequestList(String userCode);

    void agreeAddFriend(UserFriend userFriend);

    void addGroupChat(List<UserFriend> list);

    List<String> queryGroupChatUsers(String toCode);

    List<UserFriendVo> getFriendList(String userCode);
}
